import { createRouter, createWebHashHistory } from 'vue-router'
import DengLu from '../views/DengLu.vue'
import Find from '../views/Find.vue'
import Xq from '../views/Xq.vue'

const routes = [
  {
    path:'/',
    redirect: '/denglu',  // 重定向:重新指向其它path,会改变网址
  },
  {
    path: '/denglu',
    component: DengLu
  },
  {
    path:'/find',
    component: Find
  },
  {
    path:'/xq/:id',
    component: Xq
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
